package pers.cz.compilation;

import java.util.Date;
import java.util.List;

/**
 * @program: PostGirl-panent
 * @description: TypeJudgeImpl
 * @author: Cheng Zhi
 * @create: 2021-11-22 09:39
 **/
public class TypeJudgeImpl implements ITypeJudge{

    @Override
    public Object handleJudge(Object object) {
        return null;
    }
}

/**
 * 日期策略处理类
 */
class DateTypeJudgeImpl implements ITypeJudge{

    @Override
    public Date handleJudge(Object object) {
        return (Date)object;
    }
}

/**
 * Integer策略处理类
 */
class IntegerTypeJudgeImpl implements ITypeJudge{

    @Override
    public Integer handleJudge(Object object) {
        return (Integer)object;
    }
}

/**
 * Long策略处理类
 */
class LongTypeJudgeImpl implements ITypeJudge{

    @Override
    public Long handleJudge(Object object) {
        return (Long)object;
    }
}

/**
 * String策略处理类
 */
class StringJudgeImpl implements ITypeJudge{

    @Override
    public String handleJudge(Object object) {
        return (String)object;
    }
}

/**
 * Double策略处理类
 */
class DoubleJudgeImpl implements ITypeJudge{

    @Override
    public Double handleJudge(Object object) {
        return (Double)object;
    }
}

/**
 * List策略处理类
 */
class ListJudgeImpl implements ITypeJudge{

    @Override
    public List handleJudge(Object object) {
        return (List)object;
    }
}
